package com.dubbo.consumer;

import com.dubbo.api.DemoService;
import com.dubbo.api.User;
import org.springframework.context.support.ClassPathXmlApplicationContext;

/**
 * Created by LiuChang on 2017/4/7.
 */
public class Consumer {
    public static void main(String[] args) {

        ClassPathXmlApplicationContext context = new ClassPathXmlApplicationContext(
                new String[]{"consumer.xml"});
        context.start();

        ConsumerTest consumerTest = (ConsumerTest) context.getBean("consumerTest");
        consumerTest.test();

    }
}
